package tt.lab.pmbok.dto;

import java.util.ArrayList;
import java.util.List;

import tt.lab.pmbok.model.PmbokProcess;

public class InoutDTO {
	private int id;
	private String name;
	
	private List<ProcessDTO> fromProcesses = new ArrayList<ProcessDTO>();
	private List<ProcessDTO> toProcesses = new ArrayList<ProcessDTO>();
	
	public InoutDTO(int id, String name) {
		this.id = id;
		this.name = name;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public List<ProcessDTO> getFromProcesses() {
		return fromProcesses;
	}
	public void setFromProcesses(List<ProcessDTO> fromProcesses) {
		this.fromProcesses = fromProcesses;
	}
	public List<ProcessDTO> getToProcesses() {
		return toProcesses;
	}
	public void setToProcesses(List<ProcessDTO> toProcesses) {
		this.toProcesses = toProcesses;
	}
	
	public void addFromProcess(ProcessDTO process){
		this.getFromProcesses().add(process);
	}
	public void addToProcess(ProcessDTO process){
		this.getToProcesses().add(process);
	}
	
}
